package helper
//
//import (
//	"sync"
//	helperRepo "webGoDemo/dao/helper"
//)
//
//var once sync.Once
//var globalCaseService *Service
//
//func GetGlobalCaseService() *Service {
//	once.Do(
//		func() {
//			repository := helperRepo.GetGlobalHelperRepository()
//			conf := config.Get()
//			globalCaseService = newService(repository, clientManager, conf)
//		})
//
//	return globalCaseService
//}
//
//type Service struct {
//
//}
//
//func NewService(repository *helperRepo.Repository, clientManager client.Manager, conf *config.Config) *Service {
//	return GetGlobalCaseService()
//}
//
//func newService(repository *helperRepo.Repository, clientManager client.Manager, conf *config.Config) *Service {
//	hs := new(Service)
//	hs.deployService = deploy.NewOpService(conf.Op)
//	internal.Set(internal.GetDeployServiceRegisterKey(), hs.deployService)
//
//	hs.deployProxyService = deployproxy.NewOpService(conf.OpProxy)
//	internal.Set(internal.GetDeployProxyServiceRegisterKey(), hs.deployProxyService)
//
//	hs.cacheService = cache.NewService(conf.Cache)
//	internal.Set(internal.GetCacheServiceRegisterKey(), hs.cacheService)
//
//	hs.topicService = topic.NewServiceV3()
//	internal.Set(internal.GetTopicServiceRegisterKey(), hs.topicService)
//
//	hs.clusterService = cluster.NewServiceV3()
//	internal.Set(internal.GetClusterServiceRegisterKey(), hs.clusterService)
//
//	hs.proxyService = proxy.NewServiceV3()
//	internal.Set(internal.GetProxyServiceRegisterKey(), hs.proxyService)
//
//	hs.consumerGroupService = consumergroup.NewServiceV3()
//	internal.Set(internal.GetConsumerGroupServiceRegisterKey(), hs.consumerGroupService)
//
//	hs.messageService = message.NewServiceV3()
//	internal.Set(internal.GetMessageServiceRegisterKey(), hs.messageService)
//
//	hs.partitionService = partition.NewServiceV3()
//	internal.Set(internal.GetPartitionServiceRegisterKey(), hs.partitionService)
//
//	hs.summaryService = summary.NewServiceV3()
//	internal.Set(internal.GetSummaryServiceRegisterKey(), hs.summaryService)
//
//	hs.metricsService = metrics.NewMetricServiceV3()
//	internal.Set(internal.GetMetricsServiceRegisterKey(), hs.metricsService)
//
//	return hs
//}
//
//func (hs *Service) GetDeployService() *deploy.OpService {
//	return hs.deployService
//}
//
//func (hs *Service) GetDeployProxyService() *deployproxy.OpService {
//	return hs.deployProxyService
//}
//
//func (hs *Service) GetCacheService() *cache.Service {
//	return hs.cacheService
//}
//
//func (hs *Service) GetTopicService() *topic.Service {
//	return hs.topicService
//}
//
//func (hs *Service) GetClusterService() *cluster.Service {
//	return hs.clusterService
//}
//
//func (hs *Service) GetProxyService() *proxy.Service {
//	return hs.proxyService
//}
//
//func (hs *Service) GetConsumerGroupService() *consumergroup.Service {
//	return hs.consumerGroupService
//}
//
//func (hs *Service) GetMessageService() *message.Service {
//	return hs.messageService
//}
//
//func (hs *Service) GetSummaryService() *summary.Service {
//	return hs.summaryService
//}
//
//func (hs *Service) GetPartitionService() *partition.Service {
//	return hs.partitionService
//}
//
//func (hs *Service) GetMetricsService() *metrics.Service {
//	return hs.metricsService
//}
